package com.erp.erp_servers.ShipmentPlan.imp;

import com.erp.erp_dao.ShipmentPlan.IShipmentPlanCostDAO;
import com.erp.erp_entitys.ShipmentPlan.ShipmentPlanCost;
import com.erp.erp_servers.ShipmentPlan.IShipmentPlanCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpShipmentPlanCostService implements IShipmentPlanCostService {
    @Autowired
    private IShipmentPlanCostDAO costDAO;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return costDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ShipmentPlanCost record) {
        return costDAO.insert(record);
    }

    @Override
    public int insertSelective(ShipmentPlanCost record) {
        return costDAO.insertSelective(record);
    }

    @Override
    public ShipmentPlanCost selectByPrimaryKey(Long id) {
        return costDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ShipmentPlanCost record) {
        return costDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShipmentPlanCost record) {
        return costDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<ShipmentPlanCost> selectCostBySpId(Integer spId) {
        return costDAO.selectCostBySpId(spId);
    }

    @Override
    public int deleteByIdList(List<Integer> idList) {
        return costDAO.deleteByIdList(idList);
    }
}
